package com.bbx.api.sdk.model.official.passanger.Return.OrderList;

import com.bbx.api.sdk.model.passanger.Return.PriceDetail;
import com.bbx.api.sdk.model.passanger.Return.MyOrderList.Discount;
import com.bbx.api.sdk.net.base.JsonBuild;
import com.bbx.api.util.CutNameUtils;

/**
 * @Path 
 *       com.bbx.api.sdk.model.official.passanger.Return.OrderList.OfficialOrderList2
 *       .java
 * @Author 严旭文
 * @Date 2016-1-27 下午5:15:15
 * @Company 蓝海（福建）信息技术有限公司
 * @Description OfficialOrderList2 与OfficialOrderList的区别在于order_detail为String类型
 *              由于后台返回回来order_detail有斜杠，所以不能直接解析，分开解析，所以就用到了OfficialOrderList2
 */
public class OfficialOrderList2 {
	public String id;
	public String travel_type;
	public String order_detail;
	public String line_id;
	public String order_time;
	public String appoint_time;
	public String coupon_id;
	/** 预估价格车费 */
	public String price;
	public String total_price;
	/** 支付金额 */
	public String actual_price = "-1";
	public String coupon_sum;
	public Discount discount;
	public String order_id;
	public String order_status;
	public String order_type;
	public String valuate_status;// 1待评价,2:已评价
	public String driver_id;
	public String driver_name;
	public String car_NO;
	public String driver_phone;
	public double driver_star;
	public double star;
	public String suggest;
	public String order_message;
	public String price_detail;
	/** 处理结果，相当于订单列表的process_result，orderstate=1时才有.1 - 通过订单， 2 - 被驳回的订单 */
	public String audit_status;
	public String tc_id;
	public String vehicle_type_id;
	public String round_trip;
	public String vehicle_detail;
	public String root_org_id;
	public String depart_id;
	public String appoint_type;
	// 用车时长
	public String appoint_duration;
	// 拒绝原因相当晕审核列表的remark
	public String depart_name;
	public String own_expense;//费用类型，自费或者公务
	public String pay_status;//支付状态

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTravel_type() {
		return travel_type;
	}

	public void setTravel_type(String travel_type) {
		this.travel_type = travel_type;
	}

	public String getOrderDetail() {
		return order_detail;
	}

	public void setOrderDetail(String order_detail) {
		this.order_detail = order_detail;
	}

	public String getLine_id() {
		return line_id;
	}

	public void setLine_id(String line_id) {
		this.line_id = line_id;
	}

	public String getOrder_time() {
		return order_time;
	}

	public void setOrder_time(String order_time) {
		this.order_time = order_time;
	}

	public String getAppoint_time() {
		return appoint_time;
	}

	public void setAppoint_time(String appoint_time) {
		this.appoint_time = appoint_time;
	}

	public String getCoupon_id() {
		return coupon_id;
	}

	public void setCoupon_id(String coupon_id) {
		this.coupon_id = coupon_id;
	}

	public String getOrder_id() {
		return order_id;
	}

	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}

	public String getOrder_status() {
		return order_status;
	}

	public void setOrder_status(String order_status) {
		this.order_status = order_status;
	}

	public String getOrder_type() {
		return order_type;
	}

	public void setOrder_type(String order_type) {
		this.order_type = order_type;
	}

	public String getValuate_status() {
		return valuate_status;
	}

	public void setValuate_status(String valuate_status) {
		this.valuate_status = valuate_status;
	}

	public String getDriver_id() {
		return driver_id;
	}

	public void setDriver_id(String driver_id) {
		this.driver_id = driver_id;
	}

	public String getDriver_name() {
		return CutNameUtils.getcutSurname(driver_name);
	}

	public void setDriver_name(String driver_name) {
		this.driver_name = driver_name;
	}

	public String getCar_NO() {
		return car_NO;
	}

	public void setCar_NO(String car_NO) {
		this.car_NO = car_NO;
	}

	public String getDriver_phone() {
		return driver_phone;
	}

	public void setDriver_phone(String driver_phone) {
		this.driver_phone = driver_phone;
	}

	public double getDriver_star() {
		return driver_star;
	}

	public void setDriver_star(double driver_star) {
		this.driver_star = driver_star;
	}

	public double getStar() {
		return star;
	}

	public void setStar(double star) {
		this.star = star;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getTotal_price() {
		return total_price;
	}

	public void setTotal_price(String total_price) {
		this.total_price = total_price;
	}

	public String getActual_price() {
		return actual_price;
	}

	public void setActual_price(String actual_price) {
		this.actual_price = actual_price;
	}

	public String getCoupon_sum() {
		return coupon_sum;
	}

	public void setCoupon_sum(String coupon_sum) {
		this.coupon_sum = coupon_sum;
	}

	public String getSuggest() {
		return suggest;
	}

	public void setSuggest(String suggest) {
		this.suggest = suggest;
	}

	public String getMessage() {
		return order_message == null ? "" : order_message;
	}

	public void setMessage(String order_message) {
		this.order_message = order_message;
	}

	public Discount getDiscount() {
		return discount;
	}

	public void setDiscount(Discount discount) {
		this.discount = discount;
	}

	public String getPrice_Detail() {
		return price_detail;
	}

	public void setPrice_Detail(String price_detail) {
		this.price_detail = price_detail;
	}

	public String getAudit_status() {
		return audit_status;
	}

	public void setAudit_status(String audit_status) {
		this.audit_status = audit_status;
	}

	public String getVehicle_id() {
		return vehicle_type_id;
	}

	public void setVehicle_id(String vehicle_type_id) {
		this.vehicle_type_id = vehicle_type_id;
	}

	public String getTcId() {
		return tc_id;
	}

	public void setTcId(String tc_id) {
		this.tc_id = tc_id;
	}

	public void setRound_trip(String round_trip) {
		this.round_trip = round_trip;
	}

	public String getRound_trip() {
		return round_trip;
	}

	public void setDepart_name(String depart_name) {
		this.depart_name = depart_name;
	}

	public String getDepart_name() {
		return depart_name;
	}

	public void setVehicleDetail(VehicleDetail mVehicleDetail) {
		String JsonString = new JsonBuild().setModel(mVehicleDetail).getJsonString(false);
		 this.vehicle_detail=JsonString;
	}

	public VehicleDetail getVehicleDetail() {
		VehicleDetail mVehicleDetail = (VehicleDetail) new JsonBuild().getData(
				VehicleDetail.class, vehicle_detail);
		return mVehicleDetail;
	}

	public String getEstimate_time() {
		return appoint_duration;
	}

	public void setEstimate_time(String appoint_duration) {
		this.appoint_duration = appoint_duration;
	}
	public String getOwn_expense(){
		 return own_expense!=null?own_expense:"0";
	   }
	public void setOwn_expense(String own_expense){
		 this.own_expense=own_expense;
	}
	public String getPay_status(){
		 return pay_status;
	   }
	public void setPay_status(String pay_status){
		 this.pay_status=pay_status;
	}
	public void setAppoint_type(String appoint_type){
		this.appoint_type=appoint_type;
	}
	public String getAppoint_type(){
		return appoint_type;
	}
}
